<template>
  <div class="comment-box">
    <div class="user-img"><img :src="item.aut_photo" alt="" /></div>
    <div class="comment-content">
      <div class="top">
        <div class="name">{{ item.aut_name }}</div>
        <div class="thumbs-up">
          <van-icon class-prefix="toutiao toutiao-dianzan" /> 赞
        </div>
      </div>
      <div class="text">{{ item.content }}</div>
      <div class="footer">
        <span class="times">2分钟前</span>
        <span class="reply">回复{{ item.reply_count }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: '',
  components: {},
  props: {
    item: {
      type: Object,
    },
  },
  data() {
    return {
      show: false,
    }
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
}
</script>

<style scoped lang="less">
.comment-box {
  display: flex;
  padding: 10px 0;
  .user-img {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    margin-right: 12.5px;
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
  .comment-content {
    flex: 1;
    .top {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      margin-bottom: 10px;
      .name {
        font-size: 14px;
        color: #406599;
      }
    }
    .text {
      word-wrap: break-word;
      width: 294px;
      overflow: hidden;
    }
    .footer {
      margin-top: 10px;
      display: flex;
      .times {
        margin-right: 10px;
      }
      .reply {
        display: block;
        width: 67.5px;
        height: 24px;
        border: 1px solid #eee;
        border-radius: 12px;
        line-height: 24px;
        text-align: center;
        font-size: 12px;
        color: #494949;
      }
    }
  }
}
</style>
